package com.team1.manager.role.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import com.team1.manager.teacher.entity.Teacher;
import com.team1.manager.user.entity.User;
/**
 * 角色
 * @author yzy
 *
 */
public class Role implements Serializable {
	private String id;//角色id
	private String rName;//角色名称
	private	Set<RolePrivilege> rolePrivileges = new HashSet<RolePrivilege>();//角色拥有的权限
	private Set<User> users = new HashSet<User>();//角色对应的管理员
	private Set<Teacher> teachers = new HashSet<Teacher>();
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getrName() {
		return rName;
	}
	public void setrName(String rName) {
		this.rName = rName;
	}
	public Set<RolePrivilege> getRolePrivileges() {
		return rolePrivileges;
	}
	public void setRolePrivileges(Set<RolePrivilege> rolePrivileges) {
		this.rolePrivileges = rolePrivileges;
	}
	public Set<User> getUsers() {
		return users;
	}
	public void setUsers(Set<User> users) {
		this.users = users;
	}
	public Set<Teacher> getTeachers() {
		return teachers;
	}
	public void setTeachers(Set<Teacher> teachers) {
		this.teachers = teachers;
	}
	
	
}
